<div class="right">
    <div id="group">
        <div class="titles"><?php __('我管理的小组') ?></div>
        <?php foreach ($groups_admined as $group): ?>
        <dl class="avatars">
            <dt><?php echo $avatar->groupLink($group) ?></dt>
            <dd><?php echo $linker->groupLink($group['Group']) ?><dd>
        </dl>
        <?php endforeach ?>
        <div class="clear"></div>

    </div>
    <div id="group">
        <div class="titles"><?php __('我加入的小组') ?></div>
        <?php foreach ($groups_joined as $group): ?>
        <dl class="avatars">
            <dt><?php echo $avatar->groupLink($group) ?></dt>
            <dd><?php echo $linker->groupLink($group['Group']) ?><dd>
        </dl>

        <?php endforeach ?>
        <div class="clear"></div>
    </div>

    <div class="actions">
        <ul>
            <?php if (sizeof($groups_created) < 5): ?>
            <li><?php echo $this->Html->link(__('创建小组', true), array('controller' => 'groups', 'action' => 'add')); ?> </li>
            <?php endif ?>


        </ul>
    </div>
</div>




<div class="left">

    <div class="titles"><?php __('小组最近更新');?></div>

    <table class="post-list" cellpadding="0" cellspacing="0" width=100%>
        <tr><td class="title">标题</td><td class="user">成员</td><td class="group">小组</td><td class="time">发表时间</td></tr>
        <?php
        foreach ($posts as $post):
            ?>
        <tr>
            <td class="title"><?php echo $this->Html->link(__($post['GroupPost']['title'], true), array('controller' => 'group_posts', 'action' => 'view', $post['GroupPost']['id'])); ?>&nbsp;</td>
            <td class="user">
                    <?php echo $this->Html->link($post['User']['username'], "/people/{$post['User']['uid']}"); ?>
            </td>
            <td class="group"> <?php echo $this->Html->link("{$post['Group']['name']}小组", "/group/{$post['Group']['gid']}"); ?></td>
            <td class="time"><?php echo $time->format($format="m-d h:m",$post['GroupPost']['created']); ?>&nbsp;</td>

        </tr>
        <?php endforeach; ?>
    </table>
    <p>
        <?php
        $paginator->options(array('url' => $this->passedArgs));
        echo $this->Paginator->counter(array(
        'format' => __('第 %page% / %pages% 页,  %current% / %count% 条目, 第 %start%到 %end% 条', true)
        ));
        ?>	</p>

    <div class="paging">
        <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
        |
        <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
    </div>
</div><!--mainContent end-->
